import request from '@/api/request';

/**
 * 发送手机验证码（手机）.
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
 export const smsSendCaptchaApi = query => {
    return request({
        url: '/api/setup/sms/sendCaptcha',
        method: 'post',
        params: query,
        isLoading: true
    });
};

/**
 * 发送手机验证码（用户主键）.
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const smsSendCaptchaByUserIdApi = query => {
    return request({
        url: '/api/setup/sms/sendCaptchaByUserId',
        method: 'post',
        params: query,
        isLoading: true
    });
};
